<?php 
class ControllerBossEntrust extends Controller{
		public function index(){
			
			$this->document->setTitle($this->config->get('config_title'));
			$this->document->setDescription($this->config->get('config_meta_description'));

			$this->data['heading_title'] = $this->config->get('config_title');

			$this->data['breadcrumbs'] = array();
			
			
			$this->data['breadcrumbs'][] = array(
        	'text'      => '我是雇主',
			'href'      => $this->url->link('page/boss', '', 'SSL'),      	
        	'separator' => '>>'
			);
			
			$this->data['breadcrumbs'][] = array(
        	'text'      => '特定委托转发',
			'href'      => $this->url->link('boss/entrust', '', 'SSL'),      	
        	'separator' => '>>'
			);
			
			$this->data['showall']=array(
			'text'      => '显示所有微博',
			'href'      => $this->url->link('boss/entrust/allanalyze', '', 'SSL'),      	
			);
			
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/boss/entrust.tpl')) 		            {
				$this->template = $this->config->get('config_template') . '/template/boss/entrust.tpl';
			} else {
				$this->template = 'default/template/boss/entrust.tpl';
			}
			
			$this->children = array(
				'common/footer',
				'common/header'
			);
											
			$this->response->setOutput($this->render());
		}
		
		public function allanalyze(){
			
			$this->load->model('boss/entrust');
			
			$allanalyze=$this->model_boss_entrust->getAllAnalyze();
			$this->data['allanalyze']=$allanalyze;
			
			$this->index();
		}
	}
?>
